package com.jyy.prefabricated.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 线下证书表(OfflineCertificate)实体类
 *
 * @author makejava
 * @since 2021-09-10 10:39:43
 */
@Data
public class OfflineCertificate implements Serializable {
    private static final long serialVersionUID = -43802424713064357L;

    private Integer id;
    /**
     * 身份证号
     */
    private String idCard;
    /**
     * 证书类型名
     */
    private String typeName;

    /**
     * 证书路径
     */
    private String url;
    /**
     * 证书有效期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date validityTime;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 是否删除（0否；1是）
     */
    private Boolean deleted;

}
